//
//  OcrScanViewController.h
//  ICrEAM
//
//  Created by mac on 17/5/8.
//  Copyright © 2017年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreImage/CoreImage.h>
#import <QuartzCore/QuartzCore.h>
#import <ImageIO/ImageIO.h>
#import <AVFoundation/AVFoundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import <AudioToolbox/AudioToolbox.h>
@interface OcrScanViewController : UIViewController
@property (nonatomic, retain) CALayer *customLayer;
@property (nonatomic,assign) BOOL isProcessingImage;

@property (strong, nonatomic) AVCaptureSession *session;

@property (strong, nonatomic) AVCaptureDeviceInput *captureInput;

@property (strong, nonatomic) AVCaptureStillImageOutput *captureOutput;

@property (strong, nonatomic) AVCaptureVideoPreviewLayer *preview;
@property(nonatomic,assign)CGRect sframe;
//识别类型列表
@property (strong, nonatomic) UITableView *listTableView;
@property (strong, nonatomic) NSArray *listDataSource;
//识别结果

@property (strong, nonatomic) NSMutableArray *resultDataSource;//识别结果
@property (strong, nonatomic) NSMutableArray *fieldDataSource;//字段
@property (strong, nonatomic) NSMutableArray *imagePaths;
//识别证件类型及结果个数
@property (assign, nonatomic) int recogType;
@property (assign, nonatomic) int resultCount;
@property (strong, nonatomic) NSString *typeName;
@property (nonatomic, copy) void (^SYQRCodeSuncessBlock) (OcrScanViewController *,NSString *);//扫描结果

@property (nonatomic, copy) void (^SYQRCodeCancleBlock) (OcrScanViewController *);//扫描取消

@property (nonatomic, copy) void (^SYQRCodeFailBlock) (OcrScanViewController *);//扫描失败
@end
